<%@page import="org.apache.shiro.subject.Subject"%>
<%@page import="org.apache.shiro.SecurityUtils"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="sitemesh"
	uri="http://www.opensymphony.com/sitemesh/decorator"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>ssm后台</title>
<!-- reference 引入了一些基础的 样式和js插件，如需拓展 样式文件放到该标签上方，js脚本放该标签下方 -->
<!-- REFERENCES BEGIN -->
<link rel="stylesheet" type="text/css"
	href="${ctx}/assets/css/style.css">
<link rel="stylesheet" type="text/css"
	href="${ctx}/assets/plugin/select2/select2.css" />
<link rel="stylesheet" type="text/css"
	href="${ctx}/assets/css/common.css">
<link rel="stylesheet" type="text/css"
	href="${ctx}/assets/plugin/zxf_page/zxf_page.css" />
<link rel="stylesheet" type="text/css"
	href="${ctx}/assets/plugin/msg_layer/layer-animate.css" />
<!--引入弹出层信息 -->
<link rel="stylesheet" type="text/css"
	href="plugin/layer/skin/layer.css" />
<link rel="stylesheet" href="${ctx}/assets/layui-v2.5.5/layui/css/layui.css">	

<script type="text/javascript"
	src="${ctx}/assets/plugin/jquery/jquery-1.8.3.js"></script>
<script type="text/javascript"
	src="${ctx}/assets/plugin/jquery/jquery-migrate.min.js"></script>
<script type="text/javascript"
	src="${ctx}/assets/plugin/jquery/jquery.cokie.min.js"></script>
<script type="text/javascript"
	src="${ctx}/assets/plugin/jquery-validation/js/jquery.validate.min.js"></script>
<script type="text/javascript"
	src="${ctx}/assets/plugin/jquery-validation/js/localization/messages_zh.js"></script>
<script type="text/javascript" src="${ctx}/assets/js/common.js"></script>
<script type="text/javascript" src="${ctx}/assets/js/menuHighlight.js"></script>
<script type="text/javascript"
	src="${ctx}/assets/plugin/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript"
	src="${ctx}/assets/plugin/select2/select2.min.js"></script>
<script type="text/javascript"
	src="${ctx}/assets/plugin/zxf_page/zxf_page.js"></script>
<script type="text/javascript"
	src="${ctx}/assets/plugin/msg_layer/method.js"></script>
<!--引入弹出层信息 -->
<script type="text/javascript" src="${ctx}/assets/plugin/layer/layer.js"></script>
<script src="${ctx}/assets/layui-v2.5.5/layui/layui.js"></script>
<!-- REFERENCES END -->
<sitemesh:head />
</head>
<body class="layui-layout-body">
	<!-- PAGE HEADER BEGIN -->
	<div class="layui-layout layui-layout-admin">
		<div class="layui-header"> 
			<div class="layui-logo">ssm后台</div>
		    <ul class="layui-nav layui-layout-left">
		      <li class="layui-nav-item"><a href="">控制台</a></li>
		      <li class="layui-nav-item"><a href="">商品管理</a></li>
		      <li class="layui-nav-item"><a href="">用户</a></li>
		      <li class="layui-nav-item">
		        <a href="javascript:;">其它系统</a>
		        <dl class="layui-nav-child">
		          <dd><a href="">邮件管理</a></dd>
		          <dd><a href="">消息管理</a></dd>
		          <dd><a href="">授权管理</a></dd>
		        </dl>
		      </li>
		    </ul>
		    <ul class="layui-nav layui-layout-right">
		      <li class="layui-nav-item">
		        <a href="javascript:;">
		          <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
		    			${currentUser.userName }
		        </a>
<!-- 		        <dl class="layui-nav-child"> -->
<!-- 		          <dd><a href="">基本资料</a></dd> -->
<!-- 		          <dd><a href="">安全设置</a></dd> -->
<!-- 		        </dl> -->
		      </li>
		      <li class="layui-nav-item">
		      	<a href="${ctx}/system/logout"> <span>退出</span> <img
						src="${ctx}/assets/images/img_logout.png" alt="">
					</a>
			  </li>
		    </ul>
		</div>
		<div class="layui-side layui-bg-black">
			<div class="layui-side-scroll">
				<ul class="layui-nav layui-nav-tree">
					<c:if test="${currentUser.type eq 1 }">
						<li class="layui-nav-item">
							<a href="JavaScript:void(0);"> 学生管理</a>
							<dl class="layui-nav-child">
					           <dd><a href="${ctx}/student/list">学生管理</a></dd>
					           <dd><a href="javascript:;">列表二</a></dd>
					        </dl>
						</li>
				        <li class="layui-nav-item">
				          <a href="javascript:;">活动管理</a>
				          <dl class="layui-nav-child">
				            <dd><a href="${ctx}/activity/list">活动管理</a></dd>
				            <dd><a href="javascript:;">列表二</a></dd>
				          </dl>
				        </li>
				        <li class="layui-nav-item"><a href="${ctx}/activityEvaluate/list">评价管理</a></li>	
					</c:if>
				</ul>
			</div>
		</div>

	<!-- PAGE HEADER END -->
	<!--LEFT MENU BEGIN-->
	
	<!--LEFT MENU END-->
	<!-- PAGE CONTENT BEGIN -->
	<sitemesh:body />
	<!-- PAGE CONTENT END -->
	<script type="text/javascript">
	//注意：导航 依赖 element 模块，否则无法进行功能性操作
    layui.use('element', function(){
      var element = layui.element;
      
      //…
    });
   
	</script>
</body>
</html>